cmake_minimum_required(VERSION 2.6)
set(CMAKE_CXX_FLAGS "${CAMKE_CXX_FLAGS} -std=c++11 -pthread")
set(DEP_LIBS
    OpenSSL::Crypto OpenSSL::SSL  # modern
    #${OPENSSL_SSL_LIBRARY} ${OPENSSL_CRYPTO_LIBRARY}  # old style
)

find_package(OpenSSL REQUIRED)
find_package(Threads)

# Add header file include directories
include_directories(./ ../cjson)#添加多目录的路径
# Add block directories
# add_subdirectory(cjson)#添加cjson文件夹中的cjson库

aux_source_directory(. DIR_MOPPLINK_SRCS)
add_library(mopplink ${DIR_MOPPLINK_SRCS})